package cn.jiyun.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.math.BigDecimal;

@AllArgsConstructor
@NoArgsConstructor
@ToString
@Data
//规格库存表
@TableName(value = "product_specs")
public class Spercs {
    @TableId(value = "specs_id",type = IdType.AUTO)
    private  Integer spercsId;
    @TableField("specs_image_url")
    private String  spercsImageUrl;
    @TableField("specs_price")
    private BigDecimal spercsPrice;
    @TableField("specs_cost")
    private BigDecimal spercsCost;
    @TableField("specs_yuanprice")
    private BigDecimal spercsYuanprice;
    @TableField("specs_stock")
    private Integer spercsStock;
    @TableField("specs_number")
    private Integer spercsNumber;
    @TableField("specs_weight")
    private Integer spercsWeight;
    @TableField("specs_size")
    private Integer spercsSize;
    @TableField("specs_guige_id")
    private Integer spercsGuigeId;
    @TableField("specs_base_id")
    private Integer spercsBaseId;
}
